package Box2D.Collision
{
	import Box2D.Common.Math.b2Transform;
	import Box2D.Common.Math.b2Vec2;
	import Box2D.Common.b2Settings;
	import Box2D.Common.b2Wrapper;
	
	public class b2WorldManifold extends b2Wrapper
	{
		private var _normal:b2Vec2;
		private var _points:Array;
		public function b2WorldManifold()
		{
			super(callDirect("b2WorldManifold_new"));
			_normal = new b2Vec2(0,0,_wrapper);
			_points = b2Vec2.getArray(_wrapper+8,b2Settings.b2_maxManifoldPoints);
		}
		public function get normal():b2Vec2{return _normal}
		public function get points():Array{return _points}
		public function Initialize(manifold:b2Manifold,
			xfA:b2Transform, radiusA:Number,
			xfB:b2Transform, radiusB:Number):void
		{
			call('b2WorldManifold_Initialize',manifold.wrapper,xfA.wrapper,radiusA,xfB.wrapper,radiusB);
		}		
	}
}